package com.draw.cli.webclient;

import java.net.MalformedURLException;

import javax.xml.ws.Service;
import javax.xml.ws.WebServiceException;

import com.draw.webinterface.DrawingInterface;

public class DrawingClient extends Client {
	private static DrawingInterface drawingInterface = null;

	public static DrawingInterface getInstance() throws MalformedURLException,
			WebServiceException {
		if (drawingInterface == null || Client.isConfigChanged()) {
			Service service = getService("DrawingService");
			drawingInterface = service.getPort(DrawingInterface.class);
		}
		return drawingInterface;
	}
}
